package com.franklin.java.service.database.ic;

import com.franklin.java.service.database.*;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiElement;

/**
 * 针对IC版本，无database tool的实现
 * @author Franklin
 * @since 2021/9/3 11:38
 */
public class DataSourceServiceForIC implements DataSourceService {
    @Override
    public DatabaseHandler getDatabaseHandler(PsiElement psiElement) {
        return new AbstractDatabaseHandler.EntityDatabaseHandler(psiElement);
    }

    @Override
    public MyJdbcConsole getJdbcConsole(Project project, String sql) {
        return new FranklinJdbcConsole(project, sql);
    }
}
